package cn.wolfcode.car.business.mapper;

import cn.wolfcode.car.base.domain.User;
import cn.wolfcode.car.business.domain.ServiceItem;
import cn.wolfcode.car.business.query.ServiceItemQueryObject;
import cn.wolfcode.car.business.query.StatementItemQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ServiceItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ServiceItem record);

    ServiceItem selectByPrimaryKey(Long id);

    List<ServiceItem> selectAll();

    int updateByPrimaryKey(ServiceItem record);

    List<ServiceItem> selectForList(ServiceItemQueryObject qo);
    //上架
    void updateSaleOn(@Param("integer") Integer integer, @Param("id") Long id);

    void updateAuditstatus(Integer auditstatusInit,Long id);

    List<ServiceItem> selectForListByStatement(StatementItemQueryObject qo);

    List<User> selectDirectors();

    List<User> selectFinances();
}